<div class="page-header">
  <h1>Listagem <small>Usu&aacute;rios</small></h1>
</div>

<ul class="breadcrumb">
  <li><a href="<?php echo $this->baseUrl() ?>/index">Home</a> <span class="divider">/</span></li>
  <li class="active">Listar Usuários</li>
</ul>

<?php if (!empty($this->msg)): ?>
<div class="alert alert-success alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <?php echo $this->msg; ?>
</div>
<?php endif; ?> 

<table class="table table-hover">
    <thead>
    <th>#</th>
    <th>Nome</th>
    <th>Email</th>
    <th></th>
    </thead>
    <tbody>
        <?php foreach ($this->usuarios as $usuario): ?>
        <tr>
            <td><?php echo $usuario->id ?></td>
            <td><?php echo $usuario->nome ?></td>
            <td><?php echo $usuario->email ?></td>
            <td>
                <a href="#modal-editar-usuario-<?php echo $usuario->id?>" role="button" data-toggle="modal"><i class="icon-edit" data-toggle="tooltip" title="Editar"></i></a>
                <a href="<?php echo $this->baseUrl() ?>/usuario/excluir/id/<?php echo $usuario->id ?>"><i class="icon-trash" data-toggle="tooltip" title="Excluir"></i></a>
                <a href="<?php echo $this->baseUrl() ?>/usuario/reset/id/<?php echo $usuario->id ?>"><i class="icon-qrcode" data-toggle="tooltip" title="Resetar Senha - Será definida como 123456"></i></a>
            </td>
            
            
        </tr>
        <?php echo $this->partial('partials/editar-usuario.phtml', array('usuario' => $usuario)); ?> 
        <?php endforeach; ?>
       
    </tbody>
</table>